package com.vhall.component.entity.pendant;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 挂件关联表
 *
 * @TableName pendant_mapping
 */
@TableName(value = "pendant_mapping")
@Data
public class PendantMappingEntity implements Serializable {
    /**
     * 表情关联记录ID（主键）
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 挂件ID
     */
    @TableField(value = "pendant_id")
    private Integer pendantId;

    /**
     * 房间ID
     */
    @TableField(value = "room_id")
    private String roomId;

    /**
     * 创建者ID
     */
    @TableField(value = "creator_id")
    private String creatorId;

    /**
     * 是否已删除 0 表示未删除 1 表示已删除
     */
    @TableField(value = "deleted")
    private Integer deleted;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private LocalDateTime updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "直播来源,从创建人身上获取")
    @TableField("org_code")
    private String orgCode;

    @ApiModelProperty(value = "直播来源,从创建人身上获取")
    @TableField("org_name")
    private String orgName;
}